package com.liang.design;

/**
 * @author Liangyaoyun
 */
public class Main {
    public static void main(String[] args) {
        Dog dog1= Dog.inSert();
        Dog dog= Dog.inSert();
        Cat cat=Cat.insetrCat();
        Cat cat1=Cat.insetrCat();
        System.out.println(dog==dog1);
        System.out.println(cat == cat1);
    }
}
